<?php


namespace common\behavior;

use common\model\TaskModel;

/**
 * 更新任务提醒时间的状态
 */
class UpdateTaskClockStatusBehavior
{

    public function run($params)
    {
        $data = $params['data'];
        //更新任务提醒时间的状态
        $task = model(TaskModel::class)->save(['id' => $data['task_id'], "clock_status" => "to_set"]);
    }
}